package cn.itcast.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

//货运模块的提供者
public class CargoProvider {

    public static void main(String[] args) throws IOException {
        //1. 加载配置文件
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:spring/applicationContext-*.xml");
        //2 启动
        context.start();

        //3. 阻塞型函数
        System.in.read();
    }
}
